package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Bulletin"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Bulletin implements Serializable {

    /** identifier field */
    private Integer bulletinId;

    /** persistent field */
    private String bulletinType;

    /** persistent field */
    private String sendDept;

    /** persistent field */
    private String sendDeptName;

    /** persistent field */
    private String title;

    /** persistent field */
    private String content;

    /** persistent field */
    private String createDate;

    /** persistent field */
    private String beginDate;

    /** nullable persistent field */
    private String endDate;

    /** persistent field */
    private String state;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public Bulletin(String bulletinType, String sendDept, String sendDeptName, String title, String content, String createDate, String beginDate, String endDate, String state, String userId, String latestDate, String remark) {
        this.bulletinType = bulletinType;
        this.sendDept = sendDept;
        this.sendDeptName = sendDeptName;
        this.title = title;
        this.content = content;
        this.createDate = createDate;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.state = state;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public Bulletin() {
    }

    /** minimal constructor */
    public Bulletin(String bulletinType, String sendDept, String sendDeptName, String title, String content, String createDate, String beginDate, String state, String userId) {
        this.bulletinType = bulletinType;
        this.sendDept = sendDept;
        this.sendDeptName = sendDeptName;
        this.title = title;
        this.content = content;
        this.createDate = createDate;
        this.beginDate = beginDate;
        this.state = state;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="BulletinID"
     *             unsaved-value="0"
     *         
     */
    public Integer getBulletinId() {
        return this.bulletinId;
    }

    public void setBulletinId(Integer bulletinId) {
        this.bulletinId = bulletinId;
    }

    /** 
     *            @hibernate.property
     *             column="BulletinType"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getBulletinType() {
        return this.bulletinType;
    }

    public void setBulletinType(String bulletinType) {
        this.bulletinType = bulletinType;
    }

    /** 
     *            @hibernate.property
     *             column="SendDept"
     *             length="100"
     *             not-null="true"
     *         
     */
    public String getSendDept() {
        return this.sendDept;
    }

    public void setSendDept(String sendDept) {
        this.sendDept = sendDept;
    }

    /** 
     *            @hibernate.property
     *             column="SendDeptName"
     *             length="800"
     *             not-null="true"
     *         
     */
    public String getSendDeptName() {
        return this.sendDeptName;
    }

    public void setSendDeptName(String sendDeptName) {
        this.sendDeptName = sendDeptName;
    }

    /** 
     *            @hibernate.property
     *             column="Title"
     *             length="500"
     *             not-null="true"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="Content"
     *             length="2147483647"
     *             not-null="true"
     *         
     */
    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="BeginDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getBeginDate() {
        return this.beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    /** 
     *            @hibernate.property
     *             column="EndDate"
     *             length="23"
     *         
     */
    public String getEndDate() {
        return this.endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("bulletinId", getBulletinId())
            .toString();
    }

}
